package com.chinaums.fsp.sdk.request;

import com.chinaums.fsp.base.pgt.TransType;
import com.chinaums.fsp.sdk.base.RequestData;
import com.chinaums.fsp.sdk.base.ResponseDataWrapper;
import com.chinaums.fsp.sdk.pgt.params.TwoFactorAuthRequest;
import com.chinaums.fsp.sdk.pgt.params.TwoFactorAuthResponse;
/**
 * 二要素认证
 * @author hty
 *
 */
public class DraftTwoFactorAuthTest extends BaseRequest{
	public void testDraftTwoFactorAuthRequest() throws Exception {

		PgtRequestFactory rf = FACTORY.factory();

		RequestData.Builder builder = this.createRequestDataBuilder();
		builder.setTransType(TransType.DRAFT_TRAANS_TWO_FACTOR_AUTH.getTransCode());

		TwoFactorAuthRequest data = TwoFactorAuthRequest.newBuilder().setCustomerName("黄腾勇")
				.setCertId("350583199401298311").build();
		rf.transType(TransType.DRAFT_TRAANS_TWO_FACTOR_AUTH.getTransCode()).responseClass(TwoFactorAuthResponse.class)
				.data(data);
		ResponseDataWrapper rdw = rf.post();
		this.printToDraft(rdw);
	}

}
